package sol.leetcode;

/**
 * Power of Three
 * Created by lkk on 2016/8/28.
 */
public class Issue326 {
    public static boolean isPowerOfThree(int n) {
        return n > 0 && 1162261467 % n == 0;
    }

    public static void main(String[] args) {
        System.out.println(isPowerOfThree(9));
    }

}
